﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuickTest.Core.Compilation
{
    public abstract class CompilerEventArgs : EventArgs
    {
        public string Message { get; private set; }

        protected CompilerEventArgs(string message)
        {
            Message = message;
        }
    }

    public class CompileStartedEventArgs : CompilerEventArgs
    {
        public CompileStartedEventArgs(string message)
            : base(message)
        {
        }
    }

    public class CompileFinishedEventArgs : CompilerEventArgs
    {
        public bool Succeeded { get; set; }

        public CompileFinishedEventArgs(string message, bool succeeded)
            : base(message)
        {
            Succeeded = succeeded;
        }
    }

    public class CompileErrorEventArgs : CompilerEventArgs
    {
        public CompileErrorEventArgs(string message)
            : base(message)
        {
        }
    }
}
